<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />  
<title>Untitled</title>
<script type="text/javascript">
$(function(){
	var doc = window.parent.document;
	doc.getElementById('loader').style.display = "none";
	doc.getElementById('upload_image_form').value = "";
	doc.edit_units_form.removeAttribute("target");
	if($("#error").val() == 1) alert($("#msg").val());
	else parent.image_upload_return("<?php echo $uploaded_image['id'];?>", "<?php echo $uploaded_image['thumbnails_path'];?>", "<?php echo $uploaded_image['path'];?>", "<?php echo $uploaded_image['order'];?>");
});
function get_images(){
	//$.get
}
</script>
</head>

<body>
<input type="text" id="error" name="error" value="<?php echo $uploaded_image['error'];?>" />
<input type="text" id="msg" name="msg" value="<?php echo $uploaded_image['msg'];?>" />
</body>
</html>